import request from '@/utils/request'
const api_name = '/manage/teacher/periods'

export function savePeriod(data) {
  return request({
    url: `${api_name}/`,
    method: 'post',
    data
  })
}

export function getPeriodById(id) {
  return request({
    url: `${api_name}/${id}`,
    method: 'get'
  })
}

export function updatePeriodById(PeriodId,data) {
  return request({
    url: `${api_name}/${PeriodId}`,
    method: 'put',
    data
  })
}

export function deletePeriodById(id) {
  return request({
    url: `${api_name}/${id}`,
    method: 'delete'
  })
}

